package com.unbox.admin.entity;

<#list fields as field>
<#if field.javaImportPkg != ''>
import ${field.javaImportPkg};
</#if>
</#list>
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * <${tableComment}实体类
 * </p>
 *
 * @author 王振宇
 * @since ${.now?string('yyyy-MM-dd')}
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("${tableName}")
@ApiModel(value = "${bClassName}", description = "${tableComment}")
public class ${bClassName} implements Serializable {
    private static final long serialVersionUID = 1L;
<#list fields as field>
   /**
    * ${field.columnComment}
    */
    <#if field.javaIsPri == '1'>@TableId(value = "${field.columnName}", type = IdType.AUTO)<#else>@TableField(value = "${field.columnName}")</#if>
    <#if field.javaType == 'LocalDateTime'>@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")</#if>
    @ApiModelProperty(value = "${field.columnComment}", name = "${field.javaEntityFieldName}")
    private ${field.javaType} ${field.javaEntityFieldName};

</#list>
}
